import PageView from '@/layouts/PageView'

// 测试
import Test from '@/views/test'
import TestForm from '@/views/test/Form'

const routes = [
  {
    path: '/test',
    redirect: '/test/test',
    component: PageView,
    name: '测试页面',
    icon: 'fire',
    invisible: true,
    children: [
      {
        path: '/test/form',
        icon: 'none',
        name: '表单提交',
        component: TestForm
      },
      {
        path: '/test/test',
        icon: 'none',
        invisible: true,
        name: '测试',
        component: Test
      }
    ]
  }
]

const isDev = process.env.NODE_ENV === 'development'

export default (isDev ? routes : [])
